Skip to content

bpo-31536: Avoid wholesale rebuild after make regen-all#3678

Merged
vstinner merged 2 commits into
python:masterfrom
pitrou:smart-regen-avoids-rebuild
Sep 20, 2017
Merged

bpo-31536: Avoid wholesale rebuild after make regen-all#3678
vstinner merged 2 commits into
python:masterfrom
pitrou:smart-regen-avoids-rebuild

Conversation

@pitrou

@pitrou pitrou commented Sep 20, 2017

Copy link
Copy Markdown
Member

Comment thread Makefile.pre.in
$(srcdir)/Lib/importlib/_bootstrap.py \
$(srcdir)/Python/importlib.h
$(srcdir)/Python/importlib.h.new
$(UPDATE_FILE) $(srcdir)/Python/importlib.h $(srcdir)/Python/importlib.h.new

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a little bit boring to always have to repeat the full path. Why not passing a single parameter to the update script, and add ".new" to get the "new filename"?

@pitrou pitrou Sep 20, 2017

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it doesn't impose a naming convention and makes it explicit which files are operated on. Also, there's a lot of boredom in Makefiles ;-)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. It was just a suggestion, being explicit is fine.

Also, there's a lot of boredom in Makefiles ;-)

I will not start discussing that aspect of Makefiles, thanks.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vstinner vstinner merged commit b091bec into python:master Sep 20, 2017
@pitrou

pitrou commented Sep 20, 2017

Copy link
Copy Markdown
Member Author

Thank you Victor!

@pitrou pitrou deleted the smart-regen-avoids-rebuild branch September 20, 2017 22:00
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @pitrou for the PR, and @Haypo for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-3797 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 28, 2017
…onGH-3678)

* bpo-31536: Avoid wholesale rebuild after `make regen-all`

* Add NEWS
(cherry picked from commit b091bec)
pitrou pushed a commit that referenced this pull request Sep 28, 2017
) (#3797)

bpo-31536: Avoid wholesale rebuild after `make regen-all`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants